<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>测试json替换</title>
</head>
<body>
测试json替换
<script type="text/javascript">
    window.onload=function(){
        let aa1={a:"true"};
        aa1.a=true;
        alert(JSON.stringify(aa1))
    }

</script>
</body>
</html>